
function user_tab(req){
	var ut = {}
	if (req.session.username==undefined) {
	    ut.usertab = '请登录';
	    ut.in_out = '注册';
	    ut.link1 = '/login';
	    ut.link2 = '/register';
	    ut.order =  '/login';
	}else{
		ut.usertab = req.session.username;
		ut.in_out = '退出';
		ut.link1 = '/member/memberCenter';
		ut.link2 = '/loginOut';
		ut.order = 'member/myOrder'
	}
	return  ut;
}

module.exports = user_tab;